package model.tokens;

import java.util.Stack;

import model.semantics.ConstNode;
import model.semantics.Node;

public class ConstantToken extends LiteralToken<Integer> {

	public ConstantToken(String label) {
		super(label);
	}

	@Override
	public Node<Integer> makeNewInstance(Stack<Node<Integer>> nodes) {
		return new ConstNode(Integer.parseInt(getLabel()));
	}
}
